package com.ruoyi.project.monitor.redismonitor.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * Redis监控对象 redis_monitor
 * 
 * @author shixiangwen
 * @date 2020-04-09
 */
public class RedisMonitor extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** id */
	private Long id;

	/** 主机 */
	@Excel(name = "主机")
	private String host;

	/** 端口 */
	@Excel(name = "端口")
	private Long port;

	/** 状态 */
	@Excel(name = "状态")
	private Integer status;

	/** 最后活跃时间 */
	@Excel(name = "最后活跃时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date lastActiveTime;

	/** 使用内存 */
	@Excel(name = "使用内存")
	private String usedMemory;

	/** 客户端连接数 */
	@Excel(name = "客户端连接数")
	private Long connectedClients;

	/** 总处理命令 */
	@Excel(name = "总处理命令")
	private Long totalCommandsProcessed;

	/** KEY数量 */
	@Excel(name = "KEY数量")
	private Long keys;

	/** 过期KEY数量 */
	@Excel(name = "过期KEY数量")
	private Long expires;

	/** 密码 */
	@Excel(name = "密码")
	private String password;

	private Integer type;

	private String error;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getHost() {
		return host;
	}

	public void setPort(Long port) {
		this.port = port;
	}

	public Long getPort() {
		return port;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return status;
	}

	public void setLastActiveTime(Date lastActiveTime) {
		this.lastActiveTime = lastActiveTime;
	}

	public Date getLastActiveTime() {
		return lastActiveTime;
	}

	public void setUsedMemory(String usedMemory) {
		this.usedMemory = usedMemory;
	}

	public String getUsedMemory() {
		return usedMemory;
	}

	public void setConnectedClients(Long connectedClients) {
		this.connectedClients = connectedClients;
	}

	public Long getConnectedClients() {
		return connectedClients;
	}

	public void setTotalCommandsProcessed(Long totalCommandsProcessed) {
		this.totalCommandsProcessed = totalCommandsProcessed;
	}

	public Long getTotalCommandsProcessed() {
		return totalCommandsProcessed;
	}

	public void setKeys(Long keys) {
		this.keys = keys;
	}

	public Long getKeys() {
		return keys;
	}

	public void setExpires(Long expires) {
		this.expires = expires;
	}

	public Long getExpires() {
		return expires;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("host", getHost()).append("port", getPort()).append("status", getStatus())
				.append("lastActiveTime", getLastActiveTime()).append("usedMemory", getUsedMemory()).append("connectedClients", getConnectedClients())
				.append("totalCommandsProcessed", getTotalCommandsProcessed()).append("keys", getKeys()).append("expires", getExpires()).append("password", getPassword()).append("remark", getRemark())
				.toString();
	}
}
